﻿using OpenCost.Common.Interfaces.Output;
using OpenCost.Common.Readings;


namespace OpenCost
{
    public class OutputHost : IOutput
    {
        public OutputHost()
        {

        }
        public OutputHost(IOutput outputPlugin)
        {
            _outputPlugin = outputPlugin;
        }


        public void SaveReading(Reading newReading)
        {
            _outputPlugin.SaveReading(newReading);
        }

        public string PluginTitle
        {
            get { return _outputPlugin.PluginTitle; }
        }

        public bool isActive
        {
            get { return _outputPlugin.isActive; }
            set { _outputPlugin.isActive = value; }
        }

        private readonly IOutput _outputPlugin;

        public void Show()
        {
            _outputPlugin.Show();
        }

        public string FormTitle
        {
            get { return _outputPlugin.FormTitle; }
        }

    }
}
